//
//  UILabel+Extension.m
//  OC版新浪微博
//
//  Created by chenguanglei on 16/12/3.
//  Copyright © 2016年 itheima. All rights reserved.
//

#import "UILabel+Extension.h"

@implementation UILabel (Extension)

+ (instancetype)text:(NSString *)text size:(CGFloat)titleFont textColor:(UIColor *)color textAlignment:(NSTextAlignment)alignment isSingleLine:(BOOL)single{

    UILabel *label = [[UILabel alloc]init];
    
    label.text = text;
    
    label.font = [UIFont systemFontOfSize:titleFont];
    
    label.textColor = color;
    
    label.textAlignment = alignment;
    
    label.numberOfLines = single;
    
    return label;
}


@end
